    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>

  <script type='text/javascript' src='/hais_switch/dwr/interface/user.js'></script>
  <script type='text/javascript' src='/hais_switch/dwr/engine.js'></script>
  <script type='text/javascript' src='/hais_switch/dwr/util.js'></script>


<script type="text/javascript">

	function enrol(){
		
		
		var username = document.getElementById("username").value;
		var password = document.getElementById("password").value;
		var information = document.getElementById("information").value;
		var email = document.getElementById("email").value;
		
		user.enrol(username,password,information,email,callBack);
	}
	
	function callBack(data){
		
		alert(data);
	}
	
</script>


</head>
<body>
	<center>	
	
	<h2><font color="red">用户注册</font></h2>
		
		
		<table>
			<tr>
				<td>用户名 :</td>
				<td><input type="text" id="username"></td>
			</tr>
			
			<tr>
				<td>密  码 :</td>
				<td><input type="password" id="password"/></td>
			</tr>
			
			<tr>
				<td>介  绍 ：</td>
				<td><input type="text" id="information"></td>
			</tr>
			
			<tr>
				<td>电子邮件：</td>
				<td><input type="text" id="email" ></td>
			</tr>
			
			<tr>
				<td><input type="button" value="确定" onclick="enrol()"> </td>
				<td><input type="reset" value="取消"></td>
			</tr>
			
		</table>
		
	</center>
</body>
</html>